package com.mysqldemo.entity.po;

import java.io.Serializable;
import com.mysqldemo.enums.DateTimeEnum;
import com.mysqldemo.utils.DateUtils;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;




/**
 * @Description 
 * @Author 徐大勇
 * @Version 1.8.0_131
 * @date 2023/07/06
 */
public class Info implements Serializable{

	/**
	 * 用户编号
	 */
	private  String userId;

	/**
	 * 用户名字
	 */
	private  String userName;

	/**
	 * 用户电话
	 */
	private  String userPhone;

	/**
	 * 用户创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private  Date userCreateTime;

	/**
	 * 用户退出时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private  Date userQuitTime;

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserId() {
		return this.userId;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return this.userName;
	}
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserPhone() {
		return this.userPhone;
	}
	public void setUserCreateTime(Date userCreateTime) {
		this.userCreateTime = userCreateTime;
	}

	public Date getUserCreateTime() {
		return this.userCreateTime;
	}
	public void setUserQuitTime(Date userQuitTime) {
		this.userQuitTime = userQuitTime;
	}

	public Date getUserQuitTime() {
		return this.userQuitTime;
	}
	@Override
	public String toString() {
		return "用户编号 : " + (userId == null ? "空" : userId) + "," + "用户名字 : " + (userName == null ? "空" : userName) + "," + "用户电话 : " + (userPhone == null ? "空" : userPhone) + "," + "用户创建时间 : " + (DateUtils.format(userCreateTime,DateTimeEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) == null ? "空" : DateUtils.format(userCreateTime,DateTimeEnum.YYYY_MM_DD_HH_MM_SS.getPattern())) + "," + "用户退出时间 : " + (DateUtils.format(userQuitTime,DateTimeEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) == null ? "空" : DateUtils.format(userQuitTime,DateTimeEnum.YYYY_MM_DD_HH_MM_SS.getPattern()));
	}
}
